home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 64 32 2e 63 78 6f |Path: nn|tpd2.cxo|
|00000010| 2e 64 65 63 2e 63 6f 6d | 21 75 73 65 6e 65 74 0a |.dec.com|!usenet.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 48 69 62 62 |From: Br|ian Hibb|
|00000030| 65 72 74 20 3c 62 5f 68 | 69 62 62 65 72 74 40 63 |ert <b_h|ibbert@c|
|00000040| 73 63 33 32 2e 65 6e 65 | 74 2e 64 65 63 2e 63 6f |sc32.ene|t.dec.co|
|00000050| 6d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |m>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 41 20 73 69 6d 70 |ject: Re|: A simp|
|00000080| 6c 65 20 22 66 69 6e 64 | 20 74 68 65 20 62 75 67 |le "find| the bug|
|00000090| 22 20 28 70 6c 65 61 73 | 65 21 20 49 20 6e 65 65 |" (pleas|e! I nee|
|000000a0| 64 20 68 65 6c 70 20 3a | 29 0a 44 61 74 65 3a 20 |d help :|).Date: |
|000000b0| 32 31 20 46 65 62 20 31 | 39 39 36 20 31 36 3a 33 |21 Feb 1|996 16:3|
|000000c0| 32 3a 32 32 20 47 4d 54 | 0a 4f 72 67 61 6e 69 7a |2:22 GMT|.Organiz|
|000000d0| 61 74 69 6f 6e 3a 20 44 | 69 67 69 74 61 6c 20 45 |ation: D|igital E|
|000000e0| 71 75 69 70 6d 65 6e 74 | 20 43 6f 72 70 6f 72 61 |quipment| Corpora|
|000000f0| 74 69 6f 6e 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |tion.Mes|sage-ID:|
|00000100| 20 3c 34 67 66 68 65 6d | 24 64 62 64 40 6e 6e 74 | <4gfhem|$dbd@nnt|
|00000110| 70 64 32 2e 63 78 6f 2e | 64 65 63 2e 63 6f 6d 3e |pd2.cxo.|dec.com>|
|00000120| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 34 67 |.Referen|ces: <4g|
|00000130| 64 72 36 6e 24 36 70 30 | 40 67 75 61 76 61 2e 65 |dr6n$6p0|@guava.e|
|00000140| 70 69 78 2e 6e 65 74 3e | 0a 4e 4e 54 50 2d 50 6f |pix.net>|.NNTP-Po|
|00000150| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 70 65 6f 31 |sting-Ho|st: peo1|
|00000160| 30 31 32 5f 70 6f 72 74 | 31 2e 70 65 6f 2e 64 65 |012_port|1.peo.de|
|00000170| 63 2e 63 6f 6d 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |c.com.Mi|me-Versi|
|00000180| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000190| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|000001a0| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|000001b0| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001c0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001d0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001e0| 69 6c 6c 61 20 31 2e 32 | 4e 20 28 57 69 6e 64 6f |illa 1.2|N (Windo|
|000001f0| 77 73 3b 20 49 3b 20 31 | 36 62 69 74 29 0a 54 6f |ws; I; 1|6bit).To|
|00000200| 3a 20 6a 67 76 64 40 65 | 70 69 78 2e 6e 65 74 0a |: jgvd@e|pix.net.|
|00000210| 0a 6a 67 76 64 40 65 70 | 69 78 2e 6e 65 74 20 28 |.jgvd@ep|ix.net (|
|00000220| 4a 6f 6e 29 20 77 72 6f | 74 65 3a 0a 3e 49 20 77 |Jon) wro|te:.>I w|
|00000230| 72 6f 74 65 20 74 68 69 | 73 20 6a 75 73 74 20 6e |rote thi|s just n|
|00000240| 6f 77 20 61 6e 64 20 69 | 74 27 73 20 74 65 6c 6c |ow and i|t's tell|
|00000250| 69 6e 67 20 6d 65 20 74 | 68 61 74 20 77 68 65 6e |ing me t|hat when|
|00000260| 20 69 20 74 72 79 20 74 | 6f 20 63 6f 75 74 20 74 | i try t|o cout t|
|00000270| 68 65 20 0a 3e 72 65 73 | 75 6c 74 20 61 74 20 74 |he .>res|ult at t|
|00000280| 68 65 20 62 6f 74 74 6f | 6d 2c 20 69 74 20 69 73 |he botto|m, it is|
|00000290| 20 61 6e 20 75 6e 64 65 | 66 69 6e 65 64 20 76 61 | an unde|fined va|
|000002a0| 6c 75 65 20 65 76 65 6e | 20 74 68 6f 75 67 68 20 |lue even| though |
|000002b0| 49 20 64 69 64 20 72 65 | 74 75 72 6e 20 0a 3e 74 |I did re|turn .>t|
|000002c0| 68 65 20 72 65 73 75 6c | 74 20 76 61 72 2e 2e 2e |he resul|t var...|
|000002d0| 20 20 53 65 65 20 69 66 | 20 79 6f 75 20 63 61 6e | See if| you can|
|000002e0| 20 68 65 6c 70 2e 0a 3e | 0a 0a 49 20 74 68 69 6e | help..>|..I thin|
|000002f0| 6b 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 67 65 |k you ne|ed to ge|
|00000300| 74 20 61 20 67 6f 6f 64 | 20 43 20 6f 72 20 43 2b |t a good| C or C+|
|00000310| 2b 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 62 6f |+ progra|mming bo|
|00000320| 6f 6b 20 6f 72 20 74 61 | 6b 65 20 61 20 63 6c 61 |ok or ta|ke a cla|
|00000330| 73 73 20 0a 61 74 20 79 | 6f 75 72 20 6c 6f 63 61 |ss .at y|our loca|
|00000340| 6c 20 63 6f 6c 6c 65 67 | 65 2e 20 20 49 6e 20 70 |l colleg|e. In p|
|00000350| 61 72 74 69 63 75 6c 61 | 72 2c 20 79 6f 75 20 6e |articula|r, you n|
|00000360| 65 65 64 20 74 6f 20 72 | 65 76 69 65 77 20 73 65 |eed to r|eview se|
|00000370| 63 74 69 6f 6e 73 20 6f | 6e 20 74 68 65 20 0a 73 |ctions o|n the .s|
|00000380| 63 6f 70 65 20 6f 66 20 | 76 61 72 69 61 62 6c 65 |cope of |variable|
|00000390| 73 20 61 6e 64 20 70 61 | 73 73 69 6e 67 20 61 6e |s and pa|ssing an|
|000003a0| 64 20 72 65 74 75 72 6e | 69 6e 67 20 76 61 6c 75 |d return|ing valu|
|000003b0| 65 73 20 77 69 74 68 20 | 66 75 6e 63 74 69 6f 6e |es with |function|
|000003c0| 73 2e 0a 0a 49 27 6c 6c | 20 74 72 79 20 74 6f 20 |s...I'll| try to |
|000003d0| 65 78 70 6c 61 69 6e 20 | 77 68 61 74 20 69 73 20 |explain |what is |
|000003e0| 68 61 70 70 65 6e 69 6e | 67 20 69 6e 20 79 6f 75 |happenin|g in you|
|000003f0| 72 20 70 72 6f 67 72 61 | 6d 2e 0a 0a 0a 3e 23 69 |r progra|m....>#i|
|00000400| 6e 63 6c 75 64 65 20 3c | 69 6f 73 74 72 65 61 6d |nclude <|iostream|
|00000410| 2e 68 3e 0a 3e 0a 3e 66 | 6c 6f 61 74 20 6e 75 6d |.h>.>.>f|loat num|
|00000420| 31 3b 0a 3e 66 6c 6f 61 | 74 20 6e 75 6d 32 3b 0a |1;.>floa|t num2;.|
|00000430| 0a 79 6f 75 20 61 72 65 | 20 63 72 65 61 74 69 6e |.you are| creatin|
|00000440| 67 20 32 20 67 6c 6f 62 | 61 6c 20 76 61 72 61 69 |g 2 glob|al varai|
|00000450| 62 6c 65 73 20 6f 66 20 | 74 79 70 65 20 66 6c 6f |bles of |type flo|
|00000460| 61 74 20 68 65 72 65 2e | 20 54 68 65 73 65 20 76 |at here.| These v|
|00000470| 61 72 69 61 62 6c 65 73 | 20 0a 61 72 65 20 61 63 |ariables| .are ac|
|00000480| 63 65 73 73 61 62 6c 65 | 20 66 72 6f 6d 20 61 6e |cessable| from an|
|00000490| 79 20 66 75 6e 63 74 69 | 6f 6e 20 69 6e 20 74 68 |y functi|on in th|
|000004a0| 65 20 70 72 6f 67 72 61 | 6d 2e 0a 0a 3e 0a 3e 67 |e progra|m...>.>g|
|000004b0| 65 74 6e 75 6d 73 20 28 | 29 20 7b 0a 3e 0a 3e 66 |etnums (|) {.>.>f|
|000004c0| 6c 6f 61 74 20 72 65 73 | 75 6c 74 20 3d 20 6e 75 |loat res|ult = nu|
|000004d0| 6d 31 20 2b 6e 75 6d 32 | 3b 0a 59 6f 75 20 61 72 |m1 +num2|;.You ar|
|000004e0| 65 20 63 72 65 61 74 69 | 6e 67 20 61 6e 20 61 75 |e creati|ng an au|
|000004f0| 74 6f 6d 61 74 69 63 20 | 76 61 72 69 61 62 6c 65 |tomatic |variable|
|00000500| 20 68 65 72 65 20 6f 66 | 20 74 79 70 65 20 66 6c | here of| type fl|
|00000510| 6f 61 74 20 77 69 74 68 | 20 74 68 65 20 6e 61 6d |oat with| the nam|
|00000520| 65 0a 72 65 73 73 75 6c | 74 2e 20 59 6f 75 20 61 |e.ressul|t. You a|
|00000530| 72 65 20 69 6e 69 74 69 | 61 6c 69 7a 69 6e 67 20 |re initi|alizing |
|00000540| 69 74 20 74 6f 20 74 68 | 65 20 73 75 6d 20 6f 66 |it to th|e sum of|
|00000550| 20 77 68 61 74 65 76 65 | 72 20 69 73 20 69 6e 20 | whateve|r is in |
|00000560| 74 68 65 20 32 20 0a 67 | 6c 6f 62 61 6c 20 76 61 |the 2 .g|lobal va|
|00000570| 72 61 69 62 6c 65 73 2e | 20 20 54 68 69 73 20 76 |raibles.| This v|
|00000580| 61 72 61 69 62 6c 65 20 | 69 73 20 63 72 65 61 74 |araible |is creat|
|00000590| 65 64 20 77 68 65 6e 20 | 74 68 65 20 67 65 74 6e |ed when |the getn|
|000005a0| 75 6d 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |ums func|tion is |
|000005b0| 0a 63 61 6c 6c 65 64 20 | 61 6e 64 20 69 73 20 64 |.called |and is d|
|000005c0| 65 73 74 72 6f 79 65 64 | 20 77 68 65 6e 20 67 65 |estroyed| when ge|
|000005d0| 74 6e 75 6d 73 20 65 78 | 69 74 73 2e 20 20 49 74 |tnums ex|its. It|
|000005e0| 27 73 20 73 63 6f 70 65 | 20 69 73 20 66 6f 72 20 |'s scope| is for |
|000005f0| 74 68 65 20 0a 67 65 74 | 6e 75 6d 73 20 66 75 6e |the .get|nums fun|
|00000600| 63 74 69 6f 6e 2e 0a 3e | 0a 3e 63 6f 75 74 20 3c |ction..>|.>cout <|
|00000610| 3c 20 22 57 68 61 74 20 | 6e 75 6d 62 65 72 3f 5c |< "What |number?\|
|00000620| 6e 22 3b 0a 3e 63 69 6e | 20 3e 3e 20 6e 75 6d 31 |n";.>cin| >> num1|
|00000630| 3b 0a 3e 63 6f 75 74 20 | 3c 3c 20 22 41 6e 64 3f |;.>cout |<< "And?|
|00000640| 5c 6e 22 3b 0a 3e 63 69 | 6e 20 3e 3e 20 6e 75 6d |\n";.>ci|n >> num|
|00000650| 32 3b 0a 3e 0a 59 6f 75 | 20 61 72 65 20 69 6e 70 |2;.>.You| are inp|
|00000660| 75 74 74 69 6e 67 20 74 | 68 65 20 32 20 6e 75 6d |utting t|he 2 num|
|00000670| 62 65 72 73 20 61 66 74 | 65 72 20 79 6f 75 20 68 |bers aft|er you h|
|00000680| 61 76 65 20 64 6f 6e 65 | 20 74 68 65 20 61 64 64 |ave done| the add|
|00000690| 69 74 69 6f 6e 2e 20 20 | 49 20 0a 64 6f 6e 27 74 |ition. |I .don't|
|000006a0| 20 74 68 69 6e 6b 20 79 | 6f 75 72 20 72 65 73 75 | think y|our resu|
|000006b0| 6c 74 20 77 6f 75 6c 64 | 20 62 65 20 77 68 61 74 |lt would| be what|
|000006c0| 20 79 6f 75 20 65 78 70 | 65 63 74 20 65 76 65 6e | you exp|ect even|
|000006d0| 20 69 66 20 79 6f 75 20 | 67 6f 74 20 79 6f 75 72 | if you |got your|
|000006e0| 20 0a 73 63 6f 70 65 20 | 63 6f 72 72 65 63 74 2e | .scope |correct.|
|000006f0| 0a 0a 3e 72 65 74 75 72 | 6e 20 72 65 73 75 6c 74 |..>retur|n result|
|00000700| 3b 0a 54 68 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |;.This s|tatement|
|00000710| 20 72 65 74 75 72 6e 73 | 20 61 20 76 61 6c 75 65 | returns| a value|
|00000720| 2c 20 6e 6f 74 20 74 68 | 65 20 61 63 74 75 61 6c |, not th|e actual|
|00000730| 20 76 61 72 61 69 62 6c | 65 2e 0a 3e 7d 0a 3e 0a | varaibl|e..>}.>.|
|00000740| 3e 6d 61 69 6e 20 28 29 | 7b 0a 3e 0a 3e 67 65 74 |>main ()|{.>.>get|
|00000750| 6e 75 6d 73 20 28 29 3b | 0a 3e 0a 3e 0a 3e 63 6f |nums ();|.>.>.>co|
|00000760| 75 74 20 3c 3c 20 72 65 | 73 75 6c 74 3b 0a 41 74 |ut << re|sult;.At|
|00000770| 20 74 68 69 73 20 70 6f | 69 6e 74 20 74 68 65 20 | this po|int the |
|00000780| 72 65 73 75 6c 74 20 76 | 61 72 61 69 62 6c 65 20 |result v|araible |
|00000790| 64 6f 65 73 20 6e 6f 74 | 20 65 78 69 74 73 2e 20 |does not| exits. |
|000007a0| 49 74 20 69 73 20 6f 6e | 6c 79 20 76 61 6c 69 64 |It is on|ly valid|
|000007b0| 20 64 75 72 69 6e 67 20 | 0a 74 68 65 20 67 65 74 | during |.the get|
|000007c0| 6e 75 6d 73 28 29 20 66 | 75 6e 63 74 69 6f 6e 20 |nums() f|unction |
|000007d0| 63 61 6c 6c 2e 20 20 54 | 68 65 20 6d 61 69 6e 28 |call. T|he main(|
|000007e0| 29 20 66 75 6e 63 74 69 | 6f 6e 20 64 6f 65 73 20 |) functi|on does |
|000007f0| 6e 6f 74 20 6b 6e 6f 77 | 20 61 6e 79 74 68 69 6e |not know| anythin|
|00000800| 67 20 0a 61 62 6f 75 74 | 20 76 61 72 69 61 62 6c |g .about| variabl|
|00000810| 65 73 20 64 65 63 6c 61 | 72 65 64 20 69 6e 73 69 |es decla|red insi|
|00000820| 64 65 20 6f 74 68 65 72 | 20 66 75 6e 63 74 69 6f |de other| functio|
|00000830| 6e 73 2e 0a 3e 7d 0a 3e | 0a 3e 20 20 20 20 20 20 |ns..>}.>|.> |
|00000840| 20 20 5e 5e 5e 5e 5e 5e | 20 72 69 67 68 74 20 74 | ^^^^^^| right t|
|00000850| 68 65 72 65 20 69 73 20 | 74 68 65 20 72 65 73 75 |here is |the resu|
|00000860| 6c 74 20 69 20 77 61 6e | 74 20 70 72 69 6e 74 65 |lt i wan|t printe|
|00000870| 64 20 62 75 74 20 69 74 | 20 64 6f 65 73 20 6e 6f |d but it| does no|
|00000880| 74 20 0a 3e 72 65 63 6f | 67 6e 69 7a 65 20 69 74 |t .>reco|gnize it|
|00000890| 20 65 76 65 6e 20 74 68 | 6f 75 67 68 20 49 20 64 | even th|ough I d|
|000008a0| 69 64 20 74 72 79 20 74 | 6f 20 72 65 74 75 72 6e |id try t|o return|
|000008b0| 20 74 68 65 20 76 61 6c | 75 65 20 69 6e 20 74 68 | the val|ue in th|
|000008c0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 0a 3e 67 65 74 |e functi|on .>get|
|000008d0| 6e 75 6d 73 2e 2e 2e 20 | 61 6d 20 49 20 6d 69 73 |nums... |am I mis|
|000008e0| 73 69 6e 67 20 73 6f 6d | 65 74 68 69 6e 67 3f 0a |sing som|ething?.|
|000008f0| 3e 0a 3e 4a 6f 6e 0a 3e | 0a 49 27 6c 6c 20 74 72 |>.>Jon.>|.I'll tr|
|00000900| 79 20 74 6f 20 72 65 77 | 72 69 74 65 20 79 6f 75 |y to rew|rite you|
|00000910| 72 20 70 72 6f 67 72 61 | 6d 20 61 20 62 69 74 20 |r progra|m a bit |
|00000920| 28 77 69 74 68 6f 75 74 | 20 61 20 6d 61 6a 6f 72 |(without| a major|
|00000930| 20 72 65 64 65 73 69 67 | 6e 20 74 6f 20 73 68 6f | redesig|n to sho|
|00000940| 77 20 0a 79 6f 75 20 77 | 68 61 74 20 49 20 6d 65 |w .you w|hat I me|
|00000950| 61 6e 2e 29 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |an.)..#i|nclude <|
|00000960| 69 6f 73 74 72 65 61 6d | 2e 68 3e 0a 0a 66 6c 6f |iostream|.h>..flo|
|00000970| 61 74 20 67 65 74 6e 75 | 6d 73 20 28 29 20 20 2f |at getnu|ms () /|
|00000980| 2f 20 79 6f 75 20 68 61 | 76 65 20 74 6f 20 73 70 |/ you ha|ve to sp|
|00000990| 65 63 69 66 79 20 74 68 | 65 20 72 65 74 75 72 6e |ecify th|e return|
|000009a0| 20 74 79 70 65 0a 20 20 | 20 7b 0a 20 20 20 66 6c | type. | {. fl|
|000009b0| 6f 61 74 20 6e 75 6d 31 | 2c 20 6e 75 6d 32 3b 20 |oat num1|, num2; |
|000009c0| 2f 2f 20 74 68 65 73 65 | 20 76 61 72 61 69 62 6c |// these| varaibl|
|000009d0| 65 73 20 61 72 65 20 6f | 6e 6c 79 20 75 73 65 64 |es are o|nly used|
|000009e0| 20 69 6e 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 | in this| routine|
|000009f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000a00| 20 20 20 20 20 20 2f 2f | 20 73 6f 20 49 20 61 6d | //| so I am|
|00000a10| 20 64 65 63 6c 61 72 69 | 6e 67 20 74 68 65 6d 20 | declari|ng them |
|00000a20| 68 65 72 65 2e 0a 20 20 | 20 63 6f 75 74 20 3c 3c |here.. | cout <<|
|00000a30| 20 22 57 68 61 74 20 6e | 75 6d 62 65 72 3f 5c 6e | "What n|umber?\n|
|00000a40| 22 3b 0a 20 20 20 63 69 | 6e 20 3e 3e 20 6e 75 6d |";. ci|n >> num|
|00000a50| 31 3b 0a 20 20 20 63 6f | 75 74 20 3c 3c 20 22 41 |1;. co|ut << "A|
|00000a60| 6e 64 3f 5c 6e 22 3b 0a | 20 20 20 63 69 6e 20 3e |nd?\n";.| cin >|
|00000a70| 3e 20 6e 75 6d 32 3b 0a | 20 20 20 0a 20 20 20 72 |> num2;.| . r|
|00000a80| 65 74 75 72 6e 20 6e 75 | 6d 31 20 2b 20 6e 75 6d |eturn nu|m1 + num|
|00000a90| 32 3b 20 20 2f 2f 20 72 | 65 74 75 72 6e 20 74 68 |2; // r|eturn th|
|00000aa0| 65 20 72 65 73 75 6c 74 | 0a 20 20 20 7d 0a 0a 69 |e result|. }..i|
|00000ab0| 6e 74 20 6d 61 69 6e 20 | 28 29 0a 20 20 20 7b 0a |nt main |(). {.|
|00000ac0| 20 20 20 66 6c 6f 61 74 | 20 72 65 73 75 6c 74 3b | float| result;|
|00000ad0| 20 20 2f 2f 20 54 68 65 | 20 6d 61 69 6e 20 72 6f | // The| main ro|
|00000ae0| 75 74 69 6e 65 20 75 73 | 65 73 20 74 68 65 20 72 |utine us|es the r|
|00000af0| 65 73 75 6c 74 20 76 61 | 72 61 69 62 6c 65 20 73 |esult va|raible s|
|00000b00| 6f 20 69 74 20 0a 20 20 | 20 20 20 20 20 20 20 20 |o it . | |
|00000b10| 20 20 20 20 20 20 20 20 | 2f 2f 20 69 73 20 64 65 | |// is de|
|00000b20| 63 6c 61 72 65 64 20 68 | 65 72 65 2e 0a 0a 20 20 |clared h|ere... |
|00000b30| 20 72 65 73 75 6c 74 20 | 3d 20 67 65 74 6e 75 6d | result |= getnum|
|00000b40| 73 28 29 3b 20 2f 2f 20 | 54 68 69 73 20 77 69 6c |s(); // |This wil|
|00000b50| 6c 20 61 73 73 69 67 6e | 20 74 68 65 20 66 6c 6f |l assign| the flo|
|00000b60| 61 74 20 76 61 6c 75 65 | 20 72 65 74 75 72 6e 65 |at value| returne|
|00000b70| 64 20 66 72 6f 6d 0a 20 | 20 20 20 20 20 20 20 20 |d from. | |
|00000b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f | | //|
|00000b90| 20 67 65 74 6e 75 6d 73 | 20 74 6f 20 74 68 65 20 | getnums| to the |
|00000ba0| 72 65 73 75 6c 74 20 76 | 61 72 69 61 62 6c 65 20 |result v|ariable |
|00000bb0| 0a 20 20 20 63 6f 75 74 | 20 3c 3c 20 72 65 73 75 |. cout| << resu|
|00000bc0| 6c 74 3b 20 20 20 20 20 | 2f 2f 20 73 68 6f 75 6c |lt; |// shoul|
|00000bd0| 64 20 70 72 69 6e 74 20 | 74 68 65 20 73 75 6d 20 |d print |the sum |
|00000be0| 6f 66 20 74 68 65 20 32 | 20 6e 75 6d 62 65 72 73 |of the 2| numbers|
|00000bf0| 0a 20 20 20 72 65 74 75 | 72 6e 20 30 3b 20 20 2f |. retu|rn 0; /|
|00000c00| 2f 20 72 65 74 75 72 6e | 20 73 75 63 63 65 73 73 |/ return| success|
|00000c10| 20 74 6f 20 74 68 65 20 | 4f 53 0a 20 20 20 7d 0a | to the |OS. }.|
|00000c20| 0a 0a 49 20 68 6f 70 65 | 20 74 68 69 73 20 68 65 |..I hope| this he|
|00000c30| 6c 70 73 2e 0a 0a 2d 2d | 20 0a 2a 2a 2a 2a 2a 2a |lps...--| .******|
|00000c40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 42 72 69 61 6e 20 |********|*.Brian |
|00000c70| 48 69 62 62 65 72 74 20 | 20 62 5f 68 69 62 62 65 |Hibbert | b_hibbe|
|00000c80| 72 74 40 63 73 63 33 32 | 2e 65 6e 65 74 2e 64 65 |rt@csc32|.enet.de|
|00000c90| 63 2e 63 6f 6d 0a 44 69 | 67 69 74 61 6c 20 45 71 |c.com.Di|gital Eq|
|00000ca0| 75 69 70 6d 65 6e 74 20 | 43 6f 72 70 6f 72 61 74 |uipment |Corporat|
|00000cb0| 69 6f 6e 0a 41 6c 6c 20 | 6f 70 69 6e 69 6f 6e 73 |ion.All |opinions|
|00000cc0| 20 65 78 70 72 65 73 73 | 65 64 20 61 72 65 20 6d | express|ed are m|
|00000cd0| 79 20 6f 77 6e 20 61 6e | 64 20 73 68 6f 75 6c 64 |y own an|d should|
|00000ce0| 0a 6e 6f 74 20 62 65 20 | 61 73 73 75 6d 65 64 20 |.not be |assumed |
|00000cf0| 74 6f 20 62 65 20 74 68 | 65 20 6f 70 69 6e 69 6f |to be th|e opinio|
|00000d00| 6e 20 6f 66 20 6d 79 20 | 65 6d 70 6c 6f 79 65 72 |n of my |employer|
|00000d10| 0a 0a 0a | |... | |
+--------+-------------------------+-------------------------+--------+--------+